package org.itew.mymapreduce.core.impl;

import org.itew.mymapreduce.core.Reducer;
import org.itew.mymapreduce.io.Writable;

@SuppressWarnings("rawtypes")
public class SimpleReducer implements Reducer{

	@SuppressWarnings("unchecked")
	@Override
	public void reduce(Object key, Iterable values,
			Writable writer) {
		writer.write(key, values.iterator().next());
	}
	
}
